package com.hjd.shop.constant;

/**
 * Created with IntelliJ IDEA.
 *
 * @author 胡江迪
 * Date: 2020/10/18 0018
 * Time: 17:15
 * Description:
 */
public enum PayState {
    ORDER_UN_PAY("未支付","0"),
    ORDER_PAYING("支付中","1"),
    ORDER_PAYED("已支付","2"),
    /*
    下面这两个状态是模拟，第三方支付平台返回给我们的状态
     */
    PAY_STATION_SUCCESS("支付成功","3"),
    PAY_STATION_FAILED("支付成功","4");
    private String name;
    private String code;

    PayState(String name, String code) {
        this.name = name;
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
